package top.infopub.mgr.cap.service;

import com.github.pagehelper.Page;
import top.infopub.dto.cap.ContractPledgeDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.cap.domain.ContractPledgeDomain;
import top.infopub.mgr.cap.jsonvo.ContractPledgeJsonVo;
import top.infopub.mgr.cap.vo.ContractPledgeVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.cap.ContractPledge;
import top.infopub.model.cap.ContractPledgeDetail;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface ContractPledgeService  extends GenericService<ContractPledge, String> {

        /**
     * 根据条件查询保证合同列表
     * @param contractPledgeVo
     * @return
     * @see
     */
    Page<ContractPledgeDomain> selectByDomainWhere(Page<ContractPledgeDomain> page, ContractPledgeVo contractPledgeVo);


    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    ContractPledgeJsonVo queryDetailById(String id);

    /**
     * 编辑质押合同信息
     * @param contractPledgeDto
     * @param detailList
     * @param attachmentList
     * @param submitType
     * @param vo
     * @return
     */
    RspVo edit(ContractPledgeDto contractPledgeDto, List<ContractPledgeDetail> detailList,
               List<ProjectAttachment> attachmentList, Integer submitType, AuthorizationVO vo);
}
